<?php
class Rates extends AppModel{
    var $useTable = "rs_rate_items";
    public $name = "Rates";
	var $primaryKey = "ratesId";
	var $foreignKey = "newsId";
    var $belongsTo = array(
        'News' => array(
            'className'    => 'News',
            'conditions'   => '',
            'order'        => '',
            'dependent'    =>  true,
            'foreignKey'   => 'newsId'
        ),
    );
}